how to read computer files in c